package com.example.demo.service;

import com.example.demo.Pojo.JoinFamily;
import com.example.demo.Pojo.NestedFamily;
import com.example.demo.constant.MemberType;

import java.io.IOException;

public interface NestedFamilyService {

    public void addGrandPa(String name);

    public void addParent(String grandPaId, String name) throws IOException;

    public void addChild(String parentId, String name) throws IOException;

    NestedFamily getFamilyTree(String grandPaId) throws IOException;

    public NestedFamily findFamilyMemberById(String id) throws IOException;
}
